package cn.hansfly.question;

import java.util.Stack;
import java.util.StringTokenizer;
import java.util.Vector;

public class ReverseWord {
	public static void main(String[] args){
		String s = "你好 JAVA HELLO WORLD";
		StringTokenizer st = new StringTokenizer(s);
		
		Stack<String> vs = new Stack<String>();
		
		while(st.hasMoreTokens())
			vs.push(st.nextToken());
		
		while(!vs.empty())
			System.out.print(vs.pop() + " ");
		
		
	}
}
